<?php
class Forum extends AppModel {
	public $name = 'Forum';
	public $hasMany = array('SubForum');
	public $tablePrefix = 'cakeforum_';

	public $validate = array(
		'name' => array(
			'required1' => array(
				'rule' => 'notEmpty',
				'message' => 'Please enter a forum name'
			),
			'required2' => array(
				'rule' => 'isUnique',
				'message' => 'A forum with this name already exists'
			)
		),
		'id' => array(
			'required3' => array(
				'rule' => 'notEmpty',
				'message' => 'Please select a forum'
			)
		)
	);
}